-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/change email #407
Feature/change email #407
Conversation
Signed-off-by: Dan Griffiths <[email protected]>
Signed-off-by: Dan Griffiths <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! just a couple things to clean up :)
src/store/actionTypes.js
Outdated
const emails = { | ||
update: 'emails/update', | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets move this so it's a sub-group of the user
actions named email
, since it only pertains to the user's email.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved with 5a97cf5
src/store/actions/authentication.js
Outdated
export const changeEmail = ({ id, ...data }) => { | ||
return frApiPlainRequest( | ||
actionTypes.emails.update, | ||
{ | ||
url: `/users/${id}/email`, | ||
method: 'patch', | ||
data: createRequestBody('email-changes', data), | ||
}, | ||
) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets move this to the user
actions file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved with 5a97cf5
Signed-off-by: Dan Griffiths <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
Changelog
Adds an option to user profiles to change their registered email address.
✨ Additions
Contributor's Checklist
yarn lint
and confirmed there are no errors or warnings.CONTRIBUTING.md
.Maintainer's Checklist
CHANGELOG.md
.